package cn.aitstone.controller;

import cn.aitstone.entity.Store;
import cn.aitstone.service.IStoreService;
import cn.aitstone.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@RestController
public class StoreController {

    @Autowired
    private IStoreService storeService;

    @PostMapping("/store/add")
    public AjaxResult add(@RequestBody Store store){
        storeService.add(store);
        return new AjaxResult();


    }
}
